package com.ruoyi.controller;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.domain.PageQuery;
import com.ruoyi.common.page.TableDataInfo;
import com.ruoyi.workflow.service.IWfCategoryService;
import com.ruoyi.workflow.service.IWfFormService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: lgy-ry-flowable
 * @description: 其它请求
 * @author: lgy
 * @create: 2025-03-01 15:33
 **/
@Validated
@RequiredArgsConstructor
@RestController
public class OmnipotentController {
    private final IWfFormService wfFormService;
    /**
     * 查询用户列表，用于用户选择场景
     */
    @GetMapping("/system/user/selectUser")
    public TableDataInfo<SysUser> selectUser(SysUser user, PageQuery pageQuery) {
        return wfFormService.selectPageUserList(user, pageQuery);
    }
}
